<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

//广告模型
class Adv_model extends CI_Model{

	const TBL_ADV = 'adv';



	#查询广告
	public function list_adv(){
        $condition['is_show'] = 1;
		$query = $this->db->order_by('sort_order asc,adv_id desc')->where($condition)->get(self::TBL_ADV);
        return $query->result_array();
	}


}